// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


import './lib/css/mui.min.css'
import  './lib/css/icons-extra.css'
// 按需导入组件
import { Header,Swipe, SwipeItem,Button } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
// 导入vue-resource 
import VueResource from 'vue-resource'
// 注册vue-resource 
Vue.use(VueResource)

Vue.http.options.root = 'http://www.liulongbin.top:3005';
Vue.http.options.emulateJSON = true
import moment from 'moment'
Vue.filter('dateFormat',function(dateStr,pattern='YYYY-MM-DD HH:mm:ss') {
   return moment(dateStr).format(pattern);
})
export default {
  name: 'App'
}


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
